<style>
  .commonSetBox .form-control{
    width:calc(100% - 100px);
    display:inline-block;
    margin-right:5px;
  }
</style>
<div class="row wrapper white-bg page-heading">
  <div class="container-fluid">
    <h2>通用设置</h2>
  </div>
  <hr/>
  <div class="container-fluid " >
    <div class="col-md-1 pull-right" style="text-align: right">
      <button class="btn btn-primary" ng-click="commonSetCtrl.edit()"><i class="fa fa-pencil"></i> 修改</button>
    </div>
  </div>
  <br/>
  <div class="container-fluid commonSetBox">
    <table class="table table-hover">
      <thead>
      <tr>
        <th>序号</th>
        <th>类型</th>
        <th style="width:400px;">内容</th>
        <th>说明</th>
      </tr>
      </thead>
      <tbody>
      <tr>
        <td>1</td>
        <td>Banner轮播时间(秒)</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.bannerTime" type="text">秒</td>
        <td>Banner轮播时间</td>
      </tr>
      <tr>
        <td>2</td>
        <td>订单-自动关闭时间(分钟)</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.orderCancel" type="text">分钟</td>
        <td>0为不限制</td>
      </tr>
      <tr>
        <td>3</td>
        <td>订单-自动拒绝售后(分钟)</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.refund" type="text">分钟</td>
        <td>0为不限制</td>
      <tr>
        <td>4</td>
        <td>订单-自动确认收货(分钟)</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.orderConfirm" type="text">分钟</td>
        <td>0为不限制</td>
      </tr>
      <tr>
        <td>5</td>
        <td>订单-自动禁止退货/退款(分钟)</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.prohibitRefund" type="text">分钟</td>
        <td>0为不限制</td>
      </tr>
      <tr>
        <td>6</td>
        <td>佣金比例</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.commissionRate" type="text">%</td>
        <td>佣金比例</td>
      </tr>
      <tr>
        <td>7</td>
        <td>客服微信</td>
        <td><input class="form-control" ng-model="commonSetCtrl.commonSet.customWx" type="text"></td>
        <td>佣金比例</td>
      </tr>
      <tr>
        <td>7</td>
        <td>客服微信二维码</td>
        <td>
          <div class="commodity-icon-upload">
            <img ng-src="{{commonSetCtrl.commonSet.customURL}}" style="width:100px;height:100px;">
          </div>
          <br>
          <div class="commodity-icon-upload">
                <span class="btn btn-primary btn-imgUpload"><input type="file" nv-file-select
                                                                   uploader="commonSetCtrl.fileUpload.pictureUploader"
                                                                   options="{fileType:'image'}"
                                                                   accept="image/*">上传二维码</span>
          </div>
        </td>
        <td>佣金比例</td>
      </tr>
      </tbody>
    </table>
  </div>

</div>
